package com.xmy.cultivate.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.xmy.cultivate.entity.SchoolNeeds;
import com.xmy.cultivate.mapper.SchoolNeedsMapper;
import com.xmy.cultivate.service.ISchoolNeedsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 校区招聘需求表 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2024-12-11
 */
@Service
public class SchoolNeedsServiceImpl extends ServiceImpl<SchoolNeedsMapper, SchoolNeeds> implements ISchoolNeedsService {
    @Autowired
    SchoolNeedsMapper schoolNeedsMapper;

    @Override
    public IPage< SchoolNeeds> findAll(
            IPage<SchoolNeeds> page,
            String schoolOrDepartmentId,
            String stationId,
            String status

    ){
        return schoolNeedsMapper.findAll(page, schoolOrDepartmentId, stationId, status);
    }

    @Override
    public boolean updateSchoolNeedsInfo(Long schoolId,
                                         Long departmentId,
                                         Long stationId,
                                         Long subjectsId,
                                         Long id,
                                         Integer status) {
        return schoolNeedsMapper.updateSchoolNeedsInfo(schoolId, departmentId, stationId, subjectsId, id,  status);
    }

}
